package com.example.oauth2.base.domain;

import com.example.oauth2.base.common.domain.BaseEntityNoUpdate;
import lombok.Data;
import org.springframework.security.core.userdetails.UserDetails;

import javax.annotation.sql.DataSourceDefinition;
import javax.persistence.*;
import java.util.List;

@Entity
@Data
@Table(name = "sso_user")
public class SsoUser extends BaseEntityNoUpdate{

    private static final long serialVersionUID = 6780615301673045555L;
    @Column(nullable = false, unique = true)
    private String username;

    @Column
    private String password;

    @Column
    private String phone;

    @Column
    private String email;

}
